package com.kaiwukj.android.ufamily.di.module;

import com.kaiwukj.android.mcas.di.scope.ActivityScope;
import com.kaiwukj.android.ufamily.mvp.model.MineModel;
import com.kaiwukj.android.ufamily.mvp.ui.page.mine.MineContract;

import dagger.Module;
import dagger.Provides;

@Module
public class MineModule {

    private MineContract.AddressView addressView;
    private MineContract.HouseView houseView;

    public MineModule(MineContract.AddressView addressView) {
        this.addressView = addressView;
    }


    public MineModule(MineContract.HouseView houseView) {
        this.houseView = houseView;
    }

    @Provides
    @ActivityScope
    public MineContract.HouseView provideHouseView() {
        return houseView;
    }

    @Provides
    @ActivityScope
    public MineContract.AddressView provideAddressView() {
        return addressView;
    }

    @Provides
    @ActivityScope
    public MineContract.Model provideModel(MineModel model) {
        return model;
    }

}
